import { axios } from '@/utils/request'

export function getDoctorEntry (id) {
  return axios({
    url: '/doctor/entry',
    method: 'get',
    params: {
      id: id
    }
  })
}
export function addDoctorEntry (doctor) {
  return axios({
    url: '/doctor/entry',
    method: 'post',
    data: doctor
  })
}
export function doctorAgree (id, name, type) {
  return axios({
    url: '/doctor/entry/agree',
    method: 'post',
    data: {
      id: id,
      name: name,
      type: type
    }
  })
}
export function doctorReject (id, name, type) {
  return axios({
    url: '/doctor/entry/reject',
    method: 'post',
    data: {
      id: id,
      name: name,
      type: type
    }
  })
}
export function delDoctorEntry (id) {
  return axios({
    url: '/doctor/entry/del',
    method: 'delete',
    data: {
      'id': id
    }
  })
}
